<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul.nav li{
            list-style: none;

            /* float: left; */

            background: #666;
            color: #fff;
            width: 100px;
            height: 38px;
            text-align: center;
            line-height: 38px;
        }
        ul.nav li a:link, ul.nav li a:visited{
            text-decoration: none;
            color: #fff;
        }
        ul.nav li a:hover, ul.nav li a:active{
            color: #ff7300;
        }

        .hello{
            width: 100px;
            height: 100px;
            background: red;

            /* display: none; */
            display: inline;
        }
        .world{
            background: pink;
            width: 100px;
            height: 100px;

            /* display: block; */
            display: inline-block;
        }

        .container{
            width: 700px;
            height: 200px;
            border: 1px solid #333;

            /* 弹性盒子/布局 */
            display: flex;

            justify-content: space-evenly;

            align-items:stretch;
        }
        .container div{
            width: 200px;

            /* float: left; */
        }
        .d1{
            background: red;
        }
        .d2{
            background: blue;
        }
        .d3{
            background: green;
        }
    </style>
</head>
<body>
    <ul class="nav">
        <li><a href="#">新闻</a></li>
        <li><a href="#">体育</a></li>
        <li><a href="#">娱乐</a></li>
        <li><a href="#">教育</a></li>
        <li><a href="#">彩票</a></li>
        <li><a href="#">电影</a></li>
        <li><a href="#">户外</a></li>
    </ul>   
    
    <div class="hello">
        哈哈哈哈
    </div> 嘿嘿嘿嘿

    <span class="world">嘻嘻嘻嘻</span>
    <hr>

    <div class="container">
        <div class="d1">div1</div>
        <div class="d2">div2</div>
        <div class="d3">div3</div>
    </div>
</body>
</html>